package com.mall.sun.repository.mapper;

import com.mall.sun.model.po.Permission;
import com.mall.sun.model.po.Role;
import com.mall.sun.model.po.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.sun.model.dto.BaseChartDTO;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tansty
 * @since 2021-11-30
 */
public interface UserMapper extends BaseMapper<User> {
    List<Permission> findPermissionByUsername(String username);
    List<Role> findRoleByUsername(String username);
    BaseChartDTO[] userMapCount();
}
